<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <title>购买</title>
    <link rel="stylesheet" href="/wap/css/swiper.min.css"/>
    <link rel="stylesheet" href="/wap/css/buy.css" />
    <style>
        .Horizontal{ display:none; width:100%; height:100%;background: #f9694b;position: fixed;z-index: 111;}
        .Horizontal strong{ height:20px; line-height:20px;font-size:1.5rem; position:absolute; width:100%; display:block; left:0; top:50%; margin-top:-10px; color:white; text-align:center;}
    </style>

</head>
<body>
<div class="Horizontal"><strong>请使用竖屏查看</strong></div>
<div class="top">
    <img src="/wap/images/logo.png" width="11.7%" />
    <h2>牛魔代理</h2>
    <h3><a href="/register">免费注册</a></h3>
</div>
<div class="wrap">
    <nav>
        <ul>
            <li><a class="active" href="javascript:;">高级版</a></li>
            <li><a href="javascript:;">基础版</a></li>
        </ul>
    </nav>
    <section class="cp_box">
        <section class="cp_left" style="display: block;">
            <?php if(!empty($data['higt'])): ?>
                <?php foreach($data['higt'] as $value): ?>

                    <?php if(!empty($value['price_discount']) && $value['price_discount'] != 0 && $value['desction'] != "-"): ?>
                    <section class="main">
                        <div class="main_pic">
                            <h2><?php echo e($value['name']); ?></h2>
                            <ul>
                                <?php if(!empty($value['desction'])): ?>
                                    <?php foreach($value['desction'] as $item): ?>
                                        <li><img src="/wap/images/sanjiao.png" width="3.3%"/><?php echo e($item); ?></li>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                            </ul>
                            <p>优惠价：￥<Span><?php echo e($value['price_discount']); ?></Span><a href="/pay?pay_id=<?php echo e($value['id']); ?>">立即购买</a></p>
                            <h3>原价 <?php echo e($value['price_original']); ?></h3>
                        </div>
                    </section>
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        </section>
        <section class="cp_right">
            <?php if(!empty($data['list'])): ?>
                <?php foreach($data['list'] as $value): ?>
                    <?php if(!empty($value['price_discount']) && $value['price_discount'] != 0 && $value['desction'] != "-"): ?>
                        <section class="main">
                            <div class="main_pic">
                                <h2><?php echo e($value['name']); ?></h2>
                                <ul>
                                    <?php if(!empty($value['desction'])): ?>
                                        <?php foreach($value['desction'] as $item): ?>
                                            <li><img src="/wap/images/sanjiao.png" width="3.3%"/><?php echo e($item); ?></li>
                                        <?php endforeach; ?>
                                    <?php endif; ?>
                                </ul>
                                <p>优惠价：￥<Span><?php echo e($value['price_discount']); ?></Span><a href="/pay?pay_id=<?php echo e($value['id']); ?>">立即购买</a></p>
                                <h3>原价 <?php echo e($value['price_original']); ?></h3>
                            </div>
                        </section>
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        </section>
    </section>

    <div class="year_last"></div>
</div>
<?php echo $__env->make('WAP.Layout.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<script src="/wap/js/jquery.min.js"></script>
<script src="/wap/js/res.js"></script>
<script>
    $("nav li").click(function(){
        var index=$(this).index();
        $(this).find("a").addClass("active").parent().siblings().find("a").removeClass("active");
        $(".cp_box>section").eq(index).show().siblings().hide();
    })
</script>
</body>
</html>